
package com.yuhanginfo.modules.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import com.yuhanginfo.common.service.CrudService;
import com.yuhanginfo.modules.sys.entity.Classes;
import com.yuhanginfo.modules.sys.dao.ClassesDao;

/**
 * 物料管理Service
 * @author yangs
 * @version 2017-09-27
 */
@Service
@Transactional(readOnly = true)
public class ClassesService extends CrudService<ClassesDao, Classes> {
    @Autowired
    private ClassesDao classesDao;

	
	@Transactional(readOnly = false)
	public void save(Classes classes) {
		super.save(classes);
	}
	
	@Transactional(readOnly = false)
	public void delete(Classes classes) {
		super.delete(classes);
	}

	public List<Classes> selectFirstClass() {
		
		return classesDao.selectFirstClass();
	}

	public List<Classes> twiceClassList(String id) {
		
		return classesDao.twiceClassList(id);
	}

	public Classes selectById(String string) {
		
		return classesDao.selectById(string);
	}
	
}